package com.monkey.luffer.springboot.demo.task.elastic.job.common;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author: dengkaibing
 * @Description:
 * @Date: 2020/11/16 17:15
 * @company 甜橙金融
 * @Version: 1.0
 */
@Data
public class JobConstant {
    /**
     * zk锁zk地址
     */
    @Value("${lock.zookeeper.address}")
    private String lockZkUrl;

    /**
     * zk锁时间
     */
    @Value("${lock.time}")
    private Long lockZkTime;

    /**
     * 当前环境标识
     */
    @Value("${job.current.env}")
    private String CURRENT_ENV;
}
